package com.lwf.component.spider.iteye.boke;

import com.lwf.core.processor.Handler;
import org.springframework.stereotype.Component;
import us.codecraft.webmagic.Page;
@Component
public class IteyeBokeetailHandler implements Handler {
    public String getUrlRegex() {
        return "^http://.+\\.iteye\\.com/blog/[0-9]+";
    }

    public synchronized   void process(Page page) {



        String title = page.getHtml().xpath("/html/body/div[2]/div[3]/div[1]/div[2]/div[1]/h3/a/text()").get();
        System.out.println(title);
    }
}
